import axios from '@/libs/request/axios'
// 获取凭证模板信息数据多条件
export const getVoucherTemplateList = (params) => {
    return axios.request({
        url: '/contractAccount/voucherTemplate/getVoucherTemplateList',
        data: params,
        method: 'post'
    })
}
// 保存凭证信息
export const  save= (params) => {
    return axios.request({
        url: '/contractAccount/voucherTemplate/save',
        data: params,
        method: 'post'
    })
}
// 删除凭证信息
export const delVoucherInfo = (id,params) => {
        return axios.request({
            url: `/contractAccount/voucherTemplate/delVoucherInfo/${id}`,
            data: params,
            method: 'post'
        })
    }
// 获取凭证信息
export const getVoucherInfo = (id,params) => {
    return axios.request({
        url: `/contractAccount/voucherTemplate/getVoucherInfo/${id}`,
        data: params,
        method: 'post'
    })
}
// 设置生效
export const active = (id,params) => {
    return axios.request({
        url: `/contractAccount/voucherTemplate/active/${id}`,
        data: params,
        method: 'post'
    })
}

// 设置无效
export const invalidity = (id,params) => {
    return axios.request({
        url: `/contractAccount/voucherTemplate/invalidity/${id}`,
        data: params,
        method: 'post'
    })
}

// 获取凭证模板信息
export const listVoucher = (params) => {
    return axios.request({
        url: '/contractAccount/voucherTemplate/listVoucher',
        data: params,
        method: 'post'
    })
}
